package com.jiai.cloud.community.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;

import java.beans.Transient;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-06-07
 */
@TableName("t_template")
public class TTemplate extends Model<TTemplate> {

    private static final long serialVersionUID = 1L;

    /**
     * 社区模块id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 模块名称
     */
	private String name;
    /**
     * 模块图标
     */
	private String icon;
    /**
     * 用户的id
     */
	private String userId;
    /**
     * 创建时间
     */
	private Date time;
    /**
     * 模版描述
     */
	private String describe;
    /**
     * 轮播置顶
     */
	private Integer topsel;
    /**
     * 模版主题色
     */
	private String subject;
    /**
     * 模版排序
     */
	private Integer sort;

	@TableField(exist = false)
	private List<TClassify>  classifies;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Integer getTopsel() {
		return topsel;
	}

	public void setTopsel(Integer topsel) {
		this.topsel = topsel;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public List<TClassify> getClassifies() {
		return classifies;
	}

	public void setClassifies(List<TClassify> classifies) {
		this.classifies = classifies;
	}
}
